import asyncio
import sys
from asyncio.subprocess import PIPE, STDOUT


async def get_lines(cmd):
    p = await asyncio.create_subprocess_shell(cmd,
            stdin=PIPE, stdout=PIPE, stderr=STDOUT)
    return (await p.communicate())[0].splitlines()


async def main():
    # get commands output concurrently
    print('start')
    coros=[get_lines('python outputs.py'),]
    for f in asyncio.as_completed(coros):  # print in the order they finish
        print(await f)
    print('end')

asyncio.set_event_loop_policy(
    asyncio.WindowsProactorEventLoopPolicy())
asyncio.run(main())
